package com.lagou.demo.controller;


import com.lagou.demo.service.IDemoService;
import com.lagou.edu.mvcframwork.annotation.LagouAutowried;
import com.lagou.edu.mvcframwork.annotation.LagouController;
import com.lagou.edu.mvcframwork.annotation.LagouRequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@LagouController
@LagouRequestMapping
public class DemoController {

    @LagouAutowried
    private IDemoService demoService;

    @LagouRequestMapping
    public String getName(HttpServletRequest request, HttpServletResponse response,String name){

        return demoService.get(name);
    }

}
